/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class chiTietOrderPOJO implements Serializable
{
    private String maOrder;
    private String maSanPham;
    private int soLuong;
    private int chietKhau;
    private int gia;
    private String tinhTrang;
    private String maChuongTrinh;
    private Date thoiGianUpdate;
    
    // phuong thuc khoi tao

    public chiTietOrderPOJO(String MaOrder, String MaSanPham, int SoLuong, int ChietKhau, int Gia, String TinhTrang, String MaChuongTrinh, Date NgayUpdate)
    {
        this.maOrder = MaOrder;
        this.maSanPham = MaSanPham;
        this.soLuong = SoLuong;
        this.chietKhau = ChietKhau;
        this.gia = Gia;
        this.tinhTrang = TinhTrang;
        this.maChuongTrinh = MaChuongTrinh;
        this.thoiGianUpdate = NgayUpdate;
    }

    
    
    public chiTietOrderPOJO() 
    {
        this.maOrder = null;
        this.maSanPham = null;
        this.soLuong = 0;
        this.chietKhau = 0;
        this.gia = 0;
        this.tinhTrang = null;
        this.maChuongTrinh = null;
        this.thoiGianUpdate = new Date();
    }
    
    public chiTietOrderPOJO(chiTietOrderPOJO CTO) 
    {
        this.maOrder = CTO.maOrder;
        this.maSanPham = CTO.maSanPham;
        this.soLuong = CTO.soLuong;
        this.chietKhau = CTO.chietKhau;
        this.gia = CTO.gia;
        this.tinhTrang = CTO.tinhTrang;
        this.maChuongTrinh = CTO.maChuongTrinh;
        this.thoiGianUpdate = CTO.thoiGianUpdate;
    }
    
    //phuong thuc get/set

    public int getChietKhau() {
        return chietKhau;
    }

    public void setChietKhau(int ChietKhau) {
        this.chietKhau = ChietKhau;
    }

    public int getGia() {
        return gia;
    }

    public void setGia(int Gia) {
        this.gia = Gia;
    }

    public String getMaChuongTrinh() {
        return maChuongTrinh;
    }

    public void setMaChuongTrinh(String MaChuongTrinh) {
        this.maChuongTrinh = MaChuongTrinh;
    }

    public String getMaOrder() {
        return maOrder;
    }

    public void setMaOrder(String MaOrder) {
        this.maOrder = MaOrder;
    }

    public String getMaSanPham() {
        return maSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.maSanPham = MaSanPham;
    }

    public int getSoLuong() {
        return soLuong;
    }

    public void setSoLuong(int SoLuong) {
        this.soLuong = SoLuong;
    }

    public String getTinhTrang() {
        return tinhTrang;
    }

    public void setTinhTrang(String TinhTrang) {
        this.tinhTrang = TinhTrang;
    }

    public Date getNgayTao() {
        return thoiGianUpdate;
    }

    public void setNgayTao(Date NgayUpdate) {
        this.thoiGianUpdate = NgayUpdate;
    }
    
    
    
    
    
}
